Meteor.methods({
  auth:function(token){
    let login = LoginToken.findOne({token:token});
    if(login){
      let user =  Merchants.findOne({user_base_id:login.user_base_id});
      return user ? user['id'] : null;
    }else{
      return null;
    } 
  }
});

